<%@page contentType="text/html; charset=utf-8"%>
<%@ include file="/WEB-INF/jsp/include.jsp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
  	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>动态密码管理</title>
	<meta http-equiv="pragma" content="no-cache" />
	<meta http-equiv="keywords" content="" />
	<meta http-equiv="description" content="" />
	<link href="${ctx}/css/main.css" rel="stylesheet" type="text/css" />
	<link rel="stylesheet" type="text/css" href="${ctx}/js/easyui/themes/default/easyui.css"/>
	<link rel="stylesheet" type="text/css" href="${ctx}/js/easyui/themes/icon.css"/>
	<script type="text/javascript" src="${ctx}/js/jquery-1.4.2.js"></script>
	<script type="text/javascript" src="${ctx}/js/easyui/jquery.easyui.min.js"></script>
      <%--<script type="text/javascript">--%>
          <%--$(function() {--%>
              <%--$('#qrcode').attr("src", "${ctx}/user/otp.do?action=showQRCode&user.username=${user.username}&user.secretKey=${user.secretKey}");--%>
          <%--});--%>
      <%--</script>--%>
  </head>
  <body>	
  	<div id="main">
   		<div class="titlediv">您所在的位置：动态密码管理</div>
    	<div class="margin_10">
    		<div>
                <div style="margin: 20px 0px 0px 100px">
                    <span style="color: #ff0000;">${successMsg}</span>
                    <span style="color: #ff0000;">${errorMessage}</span>
                </div>
                <div style="margin: 20px 0px 0px 100px">是否已经启用动态密码：<strong style="color: #ff0000">${user.otp.name}</strong>&nbsp;&nbsp;&nbsp;&nbsp;
                    <c:if test="${user.otp.value == 0}">
                        <a href="${ctx}/user/otp.do?action=start&user.id=${user.id}" class="easyui-linkbutton" iconCls="icon-add">启用</a>
                    </c:if>
                    <c:if test="${user.otp.value == 1}">
                        <a href="${ctx}/user/otp.do?action=stop&user.id=${user.id}" class="easyui-linkbutton" iconCls="icon-add">停用</a>
                    </c:if>
                </div>

    		</div>
    	</div>
    </div>
  </body>
</html>
